package com.ssm.helong.shop.service.impl;

import com.ssm.helong.shop.Dao.GoodsDao;

import com.ssm.helong.shop.entity.GoodsTopFloor;
import com.ssm.helong.shop.pojo.FindAllGoods;
import com.ssm.helong.shop.service.GoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class GoodsServiceImpl implements GoodsService {
    @Autowired
    private GoodsDao goodsDao;


    @Override
    public List findAllGoods(FindAllGoods findAllGoods) {
        List a =goodsDao.findAllGoods(findAllGoods);
        return a;
    }

    @Override
    public List selectTopShops(GoodsTopFloor goodsTopFloor) {
        return goodsDao.selectTopShops(goodsTopFloor);
    }

    @Override
    public List selectGoodsShops(String goodsFirstName) {
        return goodsDao.selectGoodsShops(goodsFirstName);
    }

    @Override
    public List selectGoodsShopsAttribute(String goodsName) {
        return goodsDao.selectGoodsShopsAttribute(goodsName);
    }
}
